using YatFram;

namespace Examples.StringTemplate
{
    public static class Actions
    {
        public static YatFram<StringTemplateContext> RenderTheTemplate(this YatFram<StringTemplateContext> test)
        {
            return test.Do(c => c.RenderedText = new Renderer().Render(c.TemplateData.Template, c.PropertyBag, c.Renderers));
        }
    }
}